package com.ruoyi.wjq.mapper;

import java.util.List;
import com.ruoyi.wjq.domain.FavoriteQuestion;
import org.apache.ibatis.annotations.Mapper;

/**
 * 题目收藏Mapper接口
 * 
 * @author wjq
 * @date 2025-08-13
 */
@Mapper
public interface FavoriteQuestionMapper 
{
    /**
     * 查询题目收藏
     * 
     * @param id 题目收藏主键
     * @return 题目收藏
     */
    public FavoriteQuestion selectFavoriteQuestionById(Long id);

    /**
     * 查询题目收藏列表
     * 
     * @param favoriteQuestion 题目收藏
     * @return 题目收藏集合
     */
    public List<FavoriteQuestion> selectFavoriteQuestionList(FavoriteQuestion favoriteQuestion);

    public List<FavoriteQuestion> selectFavoriteQuestionList1(FavoriteQuestion favoriteQuestion);

    /**
     * 新增题目收藏
     * 
     * @param favoriteQuestion 题目收藏
     * @return 结果
     */
    public int insertFavoriteQuestion(FavoriteQuestion favoriteQuestion);

    /**
     * 修改题目收藏
     * 
     * @param favoriteQuestion 题目收藏
     * @return 结果
     */
    public int updateFavoriteQuestion(FavoriteQuestion favoriteQuestion);

    /**
     * 删除题目收藏
     * 
     * @param id 题目收藏主键
     * @return 结果
     */
    public int deleteFavoriteQuestionById(Long id);

    /**
     * 批量删除题目收藏
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFavoriteQuestionByIds(Long[] ids);
}
